import request from '@/utils/request'
import qs from 'qs'
// -------------------------------------------------- 安全 -------------------------------------------------- //
/**
 * 查看报备列表
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const aqTroubleReportList = (data) => {
  return request({
    url: '/admin/aq/MonitorExceptionReporting/troubleReportList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 异常报备详情查看
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const aqTroubleReportDetail = (data) => {
  return request({
    url: '/admin/aq/MonitorExceptionReporting/troubleReportDetail',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 异常报备审核
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const aqReviewTroubleReport = (data) => {
  return request({
    url: '/admin/aq/MonitorExceptionReporting/reviewTroubleReport',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 异常报备手动结束
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const aqTroubleReportManualEnd = (data) => {
  return request({
    url: '/admin/aq/MonitorExceptionReporting/troubleReportManualEnd',
    method: 'POST',
    data: qs.stringify(data)
  })
}
// -------------------------------------------------- 环保 -------------------------------------------------- //
/**
 * 查看报备列表
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const hbTroubleReportList = (data) => {
  return request({
    url: '/admin/hb/hbAbnormalReport/troubleReportList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
* 异常报备详情查看
*
* @export
* @params {*}
* @return {*}
*/
export const hbTroubleReportDetail = (data) => {
  return request({
    url: '/admin/hb/hbAbnormalReport/troubleReportDetail',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
* 异常报备审核
*
* @export
* @params {*}
* @return {*}
*/
export const hbReviewTroubleReport = (data) => {
  return request({
    url: '/admin/hb/hbAbnormalReport/reviewTroubleReport',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
* 异常报备-结束报备
*
* @export
* @params {*}
* @return {*}
*/
export const hbEndTroubleReport = (data) => {
  return request({
    url: '/admin/hb/hbAbnormalReport/endTroubleReport',
    method: 'POST',
    data: qs.stringify(data)
  })
}
// -------------------------------------------------- 能源 -------------------------------------------------- //
/**
 * 查看报备列表
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const nyTroubleReportList = (data) => {
  return request({
    url: '/admin/ny/MonitorExceptionReporting/troubleReportList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
* 异常报备详情查看
*
* @export
* @params {*}
* @return {*}
*/
export const nyTroubleReportDetail = (data) => {
  return request({
    url: '/admin/ny/MonitorExceptionReporting/troubleReportDetail',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
* 异常报备审核
*
* @export
* @params {*}
* @return {*}
*/
export const nyReviewTroubleReport = (data) => {
  return request({
    url: '/admin/ny/MonitorExceptionReporting/reviewTroubleReport',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
* 异常报备-结束报备
*
* @export
* @params {*}
* @return {*}
*/
export const nyEndTroubleReport = (data) => {
  return request({
    url: '/admin/ny/MonitorExceptionReporting/manualTroubleReport',
    method: 'POST',
    data: qs.stringify(data)
  })
}
// -------------------------------------------------- 消防 -------------------------------------------------- //
/**
 * 查看报备列表
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const xfTroubleReportList = (data) => {
  return request({
    url: '/admin/xf/xfAbnormalReport/troubleReportList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 异常报备详情查看
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const xfTroubleReportDetail = (data) => {
  return request({
    url: '/admin/xf/xfAbnormalReport/troubleReportDetail',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 异常报备审核
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const xfReviewTroubleReport = (data) => {
  return request({
    url: '/admin/xf/xfAbnormalReport/reviewTroubleReport',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 异常报备-结束报备
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const xfTroubleReportManualEnd = (data) => {
  return request({
    url: '/admin/xf/xfAbnormalReport/troubleReportManualEnd',
    method: 'POST',
    data: qs.stringify(data)
  })
}
